import request from '@/utils/request'

export function shangGong(user) {
  return request({
    url: '/dayOrder/shangGong',
    method: 'post',
    data: user
  })
}

export function shangGongPro(name,num) {
  const url= `/dayOrder/shangGongPro/${name}/${num}`;
  return request({
    url: url,
    method: 'get',
  })
}

export function getClaim(name) {
  const url= `/dayOrder/getClaim/${name}`;
  return request({
    url: url,
    method: 'get',
  })
}

export function xiaGong(user) {
  return request({
    url: '/dayOrder/xiaGong',
    method: 'put',
    data: user
  })
}


export function getPlan(name) {
  
  return request({
    url: `/plan/getPlan/${name}`,
    method: 'get',
  })
}

// export function deleteById(id) {
//   return request({
//     url: '/emps/'+id,
//     method: 'delete',
//   })
// }


// export function selectById(id) {
//   return request({
//     url: '/emps/'+id,
//     method: 'get',
//   })
// }

